﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Data;

namespace Views
{
    /// <summary>
    /// Interaction logic for frmError.xaml
    /// </summary>
    public partial class frmError : Window
    {
        DataTable tb = new DataTable();
        public frmError()
        {
            InitializeComponent();
        }

        public frmError(DataTable _tb)
        {
            InitializeComponent();
            tb = _tb.Copy();
            xdgError.DataSource = tb.DefaultView;
        }
        private void btnExcel_Click(object sender, RoutedEventArgs e)
        {
            Models.DataModel.ExportToExcel(tb, "Script:Script:250;ErrorMessage:ErrorMesage:300", "Datarow Update Error!");
        }
    }
}
